package com.wanter.vote.entity;

import com.wanter.users.entity.User;

import java.io.Serializable;
import java.util.Date;

/**
 * 投票信息
 */
public class Vote implements Serializable {

    private String id;
    /**
     * 为该投票的人的信息
     */
    private User voteUser;
    /**
     * 用户id
     */
    private String voteuserid;
    /**
     * 为该投出一票的原因
     */
    private String votemsg;
    /**
     * 该投票人投票的时间
     */
    private Date voteDate;
    /**
     * 是否是赞同票
     */
    private Integer agree;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public User getVoteUser() {
        return voteUser;
    }

    public void setVoteUser(User voteUser) {
        this.voteUser = voteUser;
    }

    public String getVotemsg() {
        return votemsg;
    }

    public void setVotemsg(String votemsg) {
        this.votemsg = votemsg;
    }

    public Date getVoteDate() {
        return voteDate;
    }

    public void setVoteDate(Date voteDate) {
        this.voteDate = voteDate;
    }

    public Integer getAgree() {
        return agree;
    }

    public void setAgree(Integer agree) {
        this.agree = agree;
    }

    public String getVoteuserid() {
        return voteuserid;
    }

    public void setVoteuserid(String voteuserid) {
        this.voteuserid = voteuserid;
    }

    @Override
    public String toString() {
        return "Vote{" +
                "id='" + id + '\'' +
                ", voteUser=" + voteUser +
                ", voteuserid='" + voteuserid + '\'' +
                ", votemsg='" + votemsg + '\'' +
                ", voteDate=" + voteDate +
                ", agree=" + agree +
                '}';
    }
}